import { Button } from 'antd';
import NewsPublish from '../../../components/publish-manage/NewsPublish'
import usePublish from '../../../components/publish-manage/usePublish'

function UnPublished() {
    const {dataSource,handlePublish}= usePublish(1)
    return (
        <div>
            <NewsPublish data={dataSource} button={(id)=><Button type='primary' onClick={()=>handlePublish(id)}>发布</Button>}></NewsPublish>
            
        </div>
    )
}

export default UnPublished
